package com.lxw.study.behavioral.strategy.unionfactory;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

@Component
public class Client {
    @Resource
    StrategyFactory strategyFactory;

    @PostConstruct
    public void test() {
        strategyFactory.getStrategy("strategy1").doSomething();
    }
}
